package com.shengsheng.expschedule.service.ucenter.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shengsheng.expschedule.service.ucenter.entity.Teacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shengsheng.expschedule.service.ucenter.entity.Vo.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author yuan
 * @since 2021-11-04
 */
public interface TeacherService extends IService<Teacher> {

    String login(LoginVo loginVo);

    boolean saveMemberByAdmin(Teacher teacher);

    boolean exit(String teacherId);

    List<RightVo> getRightListByTeacherId(String teacherId);

    List<RightVo> getRightMenuListByTeacherId(String teacherId);

    List<TeacherVo> getTeacherVoList();

    TeacherVo getTeacherVoById(String teacherId);

    boolean updateTeacher(TeacherVo teacherVo);

    boolean disableTeacher(String teacherId);

    boolean enableTeacher(String teacherId);

    boolean updatePassword(String teacherId, String newPassword);

    Page<Teacher> getTeacherListByPage(Long page, Long limit, TeacherQueryVo teacherQueryVo);

    Page<TeacherVo> getTeacherVoListByPage(Long page, Long limit, TeacherQueryVo teacherQueryVo);

    boolean register(RegisterVo registerVo);

    boolean checkAuth(HttpServletRequest request, String rightId);
}
